<template>
  <div class="wrap d-flex">
    <div class="img">
      <el-image fit="cover" :src="item.coverImage" style="height: 120px;width: 180px" />
    </div>
    <div class="main d-flex flex-1">
      <div class="body d-flex fd-column jc-between flex-1">
        <div class="title">{{ item.displayTitle }}</div>
        <div class="content">{{ item.displaySubtitle }}</div>
        <div class="number">{{ item.displayPrice }} {{ item.displayPricePerSqm }}</div>
      </div>
      <div class="btn d-flex ai-end">
        <template v-if="item.buttonEnable">
          <slot :buttonText="item.buttonText"></slot>
        </template>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'RemarkHouseItem',
  props: {
    item: Object
  }
};
</script>

<style lang="scss" scoped>
.wrap {
  margin-bottom: 20px;
  background: #f8fbff;

  .main {
    margin-left: 30px;
    .body {
      padding: 20px 0;
      .title {
        font-size: 18px;
        font-weight: bold;
        color: #212121;
        line-height: 20px;
      }
      .content {
        font-size: 14px;
        font-weight: bold;
        color: #666666;
        line-height: 20px;
      }
      .number {
        font-size: 16px;
        font-weight: bold;
        color: #ee4d4d;
        line-height: 20px;
      }
    }
    .btn {
      padding-right: 30px;
      padding-bottom: 20px;
    }
  }
}
</style>
